class YCL_YBC_SWIFTSAP_MPC_EXT definition
  public
  inheriting from YCL_YBC_SWIFTSAP_MPC
  create public .

public section.

  methods DEFINE
    redefinition .
protected section.
private section.
ENDCLASS.



CLASS YCL_YBC_SWIFTSAP_MPC_EXT IMPLEMENTATION.


  METHOD DEFINE.
    DATA:
      LO_ENTITY   TYPE REF TO /IWBEP/IF_MGW_ODATA_ENTITY_TYP,
      LO_PROPERTY TYPE REF TO /IWBEP/IF_MGW_ODATA_PROPERTY.

    SUPER->DEFINE( ).

    LO_ENTITY = MODEL->GET_ENTITY_TYPE( IV_ENTITY_NAME = 'Attach' ).

    IF LO_ENTITY IS BOUND.

      LO_PROPERTY = LO_ENTITY->GET_PROPERTY( IV_PROPERTY_NAME = 'MIMETYPE' ).

      LO_PROPERTY->SET_AS_CONTENT_TYPE( ).

    ENDIF.

  ENDMETHOD.
ENDCLASS.
